package dept;

public abstract class Department {
    private String deptName;
    private String managerName;
    private int numsOfEmps;
    private String deptInfo;

    public Department() {
    }

    public Department(String deptName, String managerName, int numsOfEmps, String deptInfo) {
        this.deptName = deptName;
        this.managerName = managerName;
        this.numsOfEmps = numsOfEmps;
        this.deptInfo = deptInfo;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public int getNumsOfEmps() {
        return numsOfEmps;
    }

    public void setNumsOfEmps(int numsOfEmps) {
        this.numsOfEmps = numsOfEmps;
    }

    public String getDeptInfo() {
        return deptInfo;
    }

    public void setDeptInfo(String deptInfo) {
        this.deptInfo = deptInfo;
    }

    public abstract void printIntro();

    protected void printBaseIntro(){
        System.out.println("部门名称："+this.getDeptName());
        System.out.println("经理："+this.getManagerName());
        System.out.println("员工人数："+this.getNumsOfEmps());
        System.out.println("部门职责："+this.getDeptInfo());
    }
}
